import { delay } from 'redux-saga';
import { put, takeEvery } from 'redux-saga/effects';
import countAction, { ADD_COUNT_ASYNC } from '@/action/countAction'

function* addAsync() {
    yield delay(1000);
    yield put(countAction.addCount())
}

function* countSaga() {
    yield takeEvery(ADD_COUNT_ASYNC, addAsync);
}

export default countSaga
